<?php


namespace app\controller;


use app\repository\Websocket\WebsocketRepository;
use app\repository\WebsocketLogsRepository;
use support\Request;

class WebsocketController extends BaseController
{
    protected $repository;


    public function __construct(WebsocketRepository $repository)
    {

        $this->repository = $repository;
    }

    public function send(Request $request)
    {
        $all = $request->all();
        $res = $this->repository->send($all);
        return $this->res($res);
    }
}